<?php
//建造pinboard对象
//数据源来自content表(用的最多)
class ml_biz_pin_content extends ml_biz_pin_abstract{

    public function output($uid,$data,$ifme,$ria=false){

        $this->uid        = $uid;
        $this->ifme       = $ifme;
        $this->ria        = $ria;//接口调用的话不需要init=false这个节点属性   
        $this->uniqueData = $this->unique_Data($data);
        $this->getUidRid();
        $this->get_cnt();
        /*
        if(!$this->is_favourite||!$this->ifme){
            $this->get_attitude();
        }
         */
        
        $this->get_comment();
        //$this->get_ColCnt();
        $this->get_PicHeight();
        $this->get_nick();
        return $this->parseData();

    }
    function unique_Data($data){
        foreach ($data as &$content){
            $content['canDel']     = $this->ifme;
            $content['deleteType'] = "deleteType=1";
            $content['ria']        = $this->ria;

        }
        return $data;
    }




}